package org.hepeng.resiliencedefense.config;


import java.util.Properties;

/**
 * @author he peng
 */
public class PropertiesConfigDataGetter extends AbstractConfigDataGetter {

    private Properties allConfigDataProperties;

    public PropertiesConfigDataGetter(Properties allConfigDataProperties) {
        this.allConfigDataProperties = allConfigDataProperties;
    }

    @Override
    protected ResiliencedefenseProperties getResiliencedefenseProperties(String dependencyId, String apiId) {
        return new ResiliencedefenseProperties(dependencyId, apiId, this.allConfigDataProperties);
    }
}
